package com.smartStatus.api.vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @Author: liuby5
 * @CreateTime: 2022-08-15  16:35
 * @Description: 树节点实体类
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TreeNodeVo")
public class TreeNodeVo {
    /**
     * 节点id
     */
    private  String  id;
    /**
     * 节点名称
     */
    private String name;
    /**
     * 子节点
     */
    private List<TreeNodeVo> children;
    /**
     * 是否拥有下个节点
     */
    private Boolean leaf;


    /**
     * 判断是否为menu 或者是permission
     */
    private String flag;


    /**
     * 父节点id
     */
    private String parentId;

}
